import { Base } from '../../utils/base.js';

class MySearch extends Base {
  constructor() {
    super();
  }

  getPiaoJu(yzm, callBack) {
    var that = this;
    var param = {
      url: 'getPiaoJu/' + yzm,
      // 自定义接口名  查看URL命名规则
      data: {// 获取数据
      },
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getSignin(data, callBack) {
    data = data;
    var param = {
      url: 'getSignin',
      // 自定义接口名  查看URL命名规则
      type: 'post',
      data: data,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getZh(yzm, callBack) {
    var that = this;
    var param = {
      url: 'getZh/' + yzm,
      data: {},
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getPJ(uname, yzm, callBack) {
    var that = this;
    var param = {
      url: 'getPJ/?uname=' + uname + '&yzm=' + yzm,
      data: {},
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getyz(oid_iput, uname, callBack) {
    var that = this;
    var param = {
      url: 'getyz/?oid_iput=' + oid_iput + '&uname=' + uname,
      data: {},
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

}

export { MySearch };